feat: add SLSA provenance and attestations to all Docker build workflows#1670
Merged
feat: add SLSA provenance and attestations to all Docker build workflows#1670
Conversation
Enable provenance: true and sbom: true on all image builds, upgrade attest-build-provenance to v2, and add merged manifest attestation for multi-platform bake workflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the project’s Docker image supply-chain security by enabling SLSA provenance and SBOM generation across Docker build workflows, upgrading build provenance attestation to v2, and adding a provenance attestation for merged multi-platform manifests in bake-based workflows.
Changes:
- Enable
sbom: trueandprovenance: trueon Docker build steps across workflows. - Upgrade
actions/attest-build-provenancefrom@v1to@v2and add requiredattestations: writepermissions. - For multi-platform bake workflows, compute the merged manifest digest and attest provenance for the merged manifest.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ws-server.yml | Adds attestation permissions, enables SBOM/provenance on build, and attests build provenance using attest-build-provenance@v2. |
| .github/workflows/saas.yml | Adds attestation permissions, enables SBOM/provenance on build, and attests build provenance using attest-build-provenance@v2. |
| .github/workflows/quay.yml | Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions). |
| .github/workflows/build.yml | Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions). |
| .github/workflows/build-agent.yml | Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+128
to
+131
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| attestations: write |
Comment on lines
+121
to
+124
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| attestations: write |
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: read |
…late
The --format '{{.Manifest.Digest}}' template doesn't work for OCI image
indexes. Use --raw | sha256sum to reliably compute the digest.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
QEMU is unnecessary since all platform builds run on native runners. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable provenance: true and sbom: true on all image builds, upgrade attest-build-provenance to v2, and add merged manifest attestation for multi-platform bake workflows.